﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TechnicalDataSheets.aspx.cs"
    Inherits="client_TechnicalDataSheets" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Vibration Report</title>
    <link href="../styles/client.css" rel="stylesheet" type="text/css" />
    <link href="../styles/lytebox.css" rel="stylesheet" type="text/css" media="screen" />

    <script src="../javascripts/lytebox.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="content_area">
        <h2>
            Technical Data Sheet
        </h2>
        <div id="status_wrapper">
            <h3>
                <asp:Label ID="MachineNameLabel" runat="server">
                </asp:Label>
            </h3>
            <div class="form_box1">
                <table id="selectedtable" runat="server">
                    <tr>
                        <td class="label1">
                            Select Components
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownClientList" AutoPostBack="true" runat="server" OnSelectedIndexChanged="Component_Changed"
                                DataTextField="ComponentName" DataValueField="ComponentId" CssClass="DropDownList1">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="CategoryManage" runat="server" OnClick="CategoryManage_Click" Text="Create/Edit Template"
                                CssClass="buttons1" />
                        </td>
                        <td>
                            <asp:Button ID="viewTrend" runat="server" OnClick="viewTrend_Click" Text="View trend report"
                                CssClass="buttons1" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="form_box1">
                <asp:UpdatePanel ID="upnl" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="TaskGridView" runat="server" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"
                            OnRowEditing="TaskGridView_RowEditing" OnRowCancelingEdit="TaskGridView_RowCancelingEdit"
                            OnRowUpdating="TaskGridView_RowUpdating" OnRowDeleting="TaskGridView_RowDeleting"
                            OnRowDataBound="TaskGridView_RowDataBound" AutoGenerateColumns="False" GridLines="None"
                            OnSelectedIndexChanged="TaskGridView_SelectedIndexChanged">
                            <Columns>
                                <asp:TemplateField HeaderText="Attributes" SortExpression="Attributes">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" BorderStyle="None">
                                        </asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Values" SortExpression="Values">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" BorderStyle="None"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="DropDownClientList" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
            <div class="form_box1">
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Attribute:" CssClass="label"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Value:" CssClass="label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtAttribute" runat="server" CssClass="fields"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtValue" runat="server" CssClass="fields"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Get_Button" runat="server" Text="Add Attribute" OnClick="AddAttribute"
                                CssClass="buttons1" />
                        </td>
                        <td>
                            <asp:Button ID="save" runat="server" Text="Submit Edit" OnClick="Button1_Click" CssClass="buttons1" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
